//
//  FPDiscussTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPDiscussTableViewCell.h"

@implementation FPDiscussTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titlelbl = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(10), kImageH(10), kScreenWidth - kImageW(20), kImageH(20))];
        self.titlelbl.font = [UIFont systemFontOfSize:16];
        [self.contentView addSubview:_titlelbl];
        
        self.contentlbl = [[UILabel alloc]initWithFrame:CGRectMake(_titlelbl.x, _titlelbl.y + _titlelbl.height, _titlelbl.width, kImageH(60))];
        self.contentlbl.numberOfLines = 3;
        _contentlbl.lineBreakMode = NSLineBreakByTruncatingTail;
        _contentlbl.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_contentlbl];
        
        self.headUrl = [[UIImageView alloc]initWithFrame:CGRectMake(_contentlbl.x, _contentlbl.y + _contentlbl.height, kImageW(30), kImageH(30))];
        self.headUrl.layer.masksToBounds = YES;
        self.headUrl.layer.cornerRadius = 15;
        [self.contentView addSubview:_headUrl];
        
        self.nicknamelbl = [[UILabel alloc]initWithFrame:CGRectMake(_headUrl.x + _headUrl.width + kImageW(5), _headUrl.y, kImageW(120), kImageH(20))];
        self.nicknamelbl.textColor = [UIColor grayColor];
        self.nicknamelbl.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_nicknamelbl];
        
        self.modifyTimelbl = [[UILabel alloc]initWithFrame:CGRectMake(_nicknamelbl.x, _nicknamelbl.y + _nicknamelbl.height, kImageW(120), kImageH(20))];
        self.modifyTimelbl.textColor = [UIColor grayColor];
        self.modifyTimelbl.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_modifyTimelbl];
        
        UILabel *pointLbl = [[UILabel alloc]initWithFrame:CGRectMake(_modifyTimelbl.x + _modifyTimelbl.width, _modifyTimelbl.y, kImageW(50), kImageH(20))];
        pointLbl.text = @"- 评分";
        [self.contentView addSubview:pointLbl];
       self.ratinglbl = [[UILabel alloc]initWithFrame:CGRectMake(pointLbl.x + pointLbl.width, pointLbl.y, kImageH(50), kImageH(20))];
        self.ratinglbl.textColor = [UIColor colorWithRed:0.804 green:0.055 blue:0.786 alpha:1.000];
        [self.contentView addSubview:_ratinglbl];
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
